package com.wbcs.config.resource;

import org.dom4j.Element;

import com.wbcs.exception.WbcsConfigLoadingException;

public class StringRes extends AbsResource
{
    @Override
	public Object getValue(Element itemElement)
    {
        if(itemElement==null)
        {
            throw new WbcsConfigLoadingException("加载字符串型资源项失败");
        }
        String value=itemElement.getText();
        value=value==null?"":value.trim();
        return value;
    }

}
